Repository navigation
Red control for #2679: tests without the change (do not merge) - #2680
Draft
jonathan308 wants to merge 15 commits into
Draft
jonathan308 wants to merge 15 commits into
jonathan308 wants to merge 15 commits into
Conversation
GPT-OSS's Harmony template prints a type list as a union, a oneOf as the
union of its members and a node without a type as any. The shared schema
repair gave each such node one type (the first member's or string), so the
model was told string for numbers, booleans, objects and {}.
GPT-OSS now renders each tool's parameters from the body's own declaration
through the repair without the types it invents. A tool that this leaves as
the repair leaves it keeps its prepared tool, so a body whose tools arrive
already repaired renders byte-identically. Normalization v9 still plans the
repaired prompt, so a coordinator request whose GPT-OSS render changed is
served without the prompt cache (promptCacheSkippedToolRawSchema).
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
5 of 13 tasks
…cold' into fix/gptoss-raw-tool-schema # Conflicts: # provider-swift/Sources/ProviderCore/ProviderLogger.swift # provider-swift/Sources/ProviderCore/ProviderLoop+InferenceHandler.swift # provider-swift/Tests/ProviderCoreTests/Inference/Prompting/ProductionPromptParityTests.swift
The template utility (/tokenize's applyTemplate) renders the body's tools unrepaired. For GPT-OSS it now renders each through the repair without its render types, as the served prompt does, so its count matches.
applyTemplate renders the body's tools for /tokenize. Gemma's invariant 8 (a property declared without a type renders untyped) reads the declarations; without them the utility counted STRING where the served prompt renders an empty type.
…d ids The served-cold check for another family used a GPT-OSS build id with a Qwen model type. The family is selected by build id and model type, as the Harmony template path selects it; use each family's own id.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Red control for #2679: the same tests with the GPT-OSS render switched back to the repaired tools (do not merge).
GPTOSSToolSchemaRender.renderedToolsreturns the prepared tools andchangesRenderreturns false; nothing else differs.Expected result
CI fails exactly at the new expectations that need the change: the as-written renders and the oneOf union, the other-families check's GPT-OSS line, the corpus's "some change" count, served cold, the local API, the prompt-token floor, the template utility (GPT-OSS and Gemma), and (where the prompt-parity job runs) the pinned GPT-OSS case set. The corpus inertness, single-type declarations and auto tool grammar tests pass, as on #2679.
Test plan
Components touched
Protocol / interface changes
Documentation impact
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.